import urllib
import datetime
import numpy
import matplotlib.pyplot as plt
from   matplotlib.dates import num2date
from   matplotlib.dates import date2num
from   matplotlib.finance import candlestick

def plotdata( datas ):
        
    ticks = zip( dt, prices[0], prices[3], prices[1], prices[2], prices[4] ) 
    
    fig = plt.figure()
    ax = fig.add_subplot( 1,1,1 )
    candlestick( ax, ticks, width=1, colorup='g', colordown='r' )
    ax.set_title( name )
    
    xt = ax.get_xticks()
    new_xticks = [ datetime.date.isoformat(num2date(d)) for d in xt ]
    ax.set_xticklabels(new_xticks, rotation=45, horizontalalignment='right')
    plt.show()


        